package com.zs.backend.modules.documentManageent.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 文档表
 * </p>
 *
 * @author zs
 * @since 2024-03-18
 */
@Getter
@Setter
@TableName("document_management")
@ApiModel(value = "DocumentManagement对象", description = "文档表")
public class DocumentManagement implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("文档内容")
    @TableField(select = false)
    private byte[] documentData;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("创建人id")
    private Long createUid;

    @ApiModelProperty("创建人名称")
    private String createUname;

    @ApiModelProperty("状态（0：正常;1：删除）")
    private Integer status;

    @ApiModelProperty("文件名字")
    private String documentDataName;

    @ApiModelProperty("上传的文件类型")
    private String documentDataType;

    @ApiModelProperty("上传的文件地址")
    private String fileUrl;

    @ApiModelProperty("文件地址")
    private String filePath;


}
